<?php 
require_once ('../../includes/global.php');


if ($_POST['op']!='') {
	
	switch($_POST['op']) {
	    case'step1':
			
			Di("dcfg",$_POST['zh'],1);

	    exit;
	}

}


$tables=Dz("show tables");
$select="";
if (count($tables)>0&&is_array($tables)) {
	foreach($tables as $k=>$v){
		$tvalue[]=$v[0];
	}
	
	$select.=Bcs("zh[name]",$tvalue,$tvalue,"","","","","",'style="width:150px;"');

}else{
$select.="<span style='color:red;'>&nbsp;&nbsp;&nbsp;没有表信息．请检查数据库配置</span>";
}
Tr($select,"select");
Ts("admin/mod/step1.html");
?>